import pandas as pd
import numpy as np
import os


# ['user_id', 'age', 'gender', 'creative_id', 'time', 'click_times']
click_uid_csv = "/home/datanfs/macong_data/tencent_data/train_preliminary/click_uid.csv"


# 测试cilick_uid.csv文件写入正常,能正常读取
def desc_basic_info():
    df_click_udi = pd.read_csv(click_uid_csv)
    for index, row in df_click_udi.iterrows():
        cid = row["creative_id"]
        cid = eval(cid)
        print(type(cid), len(cid))
        if index > 20:
            break
    print("columns: ", df_click_udi.columns)



if __name__ == '__main__':
    desc_basic_info()
